package com.hopu.dy.mapper;
import com.hopu.dy.pojo.video;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.net.FileNameMap;
import java.util.List;

public interface DyMapper {
    //查询所有的视频信息
    @Select("select * from t_video")
    List<video> select();

    @Insert("insert into t_video(title,url)values(#{title},#{url})")
    void insert(String title,String url);

}
